package com.huangwenshuo.futurestarschoolmanagement.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.huangwenshuo.futurestarschoolmanagement.utils.DateTimeUtils;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author huangwenshuo
 * @since 2021-02-28
 */
@Data
public class ActivitysVo implements Serializable {

private static final long serialVersionUID=1L;


    /**
     * 活动id
     */
    @TableId(value = "aid", type = IdType.AUTO)
    private Integer aid;

    /**
     * 活动标题
     */
    private String title;

    /**
     * 作者
     */
    private Integer author;

    /**
     * 内容
     */
    private String content;

    /**
     * 限制人数
     */
    private Integer restrictPeople;

    /**
     * 以报名人数
     */
    private Integer alreadyAddPeople;

    private String username;

    private String avatar;

    /**
     * 状态 0 启用 1 停用
     */
    private Integer status;


    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 图片
     */
    private String img;

    /**
     * 是否报名
     */
    private Integer isApply;
    /**
     * 是否可编辑
     */
    private Integer editable;

    private String startTime;
    private String endTime;

    private Integer isPush;

    private Boolean hasChildren;


    private List<ApplyUser> applyUsers;

    private Integer extend;

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = DateTimeUtils.getDateStrByString(startTime,"yyyy-MM-dd HH:mm");
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = DateTimeUtils.getDateStrByString(endTime,"yyyy-MM-dd HH:mm");
    }
}
